import request from '../../utils/request'

export async function login (data) {
  return request({
    url: '/login/do',
    method: 'POST',
    data
  })
}

export async function logOut (data) {
  return request({
    url: '/login/logout',
    method: 'GET',
    data
  })
}

export async function getLayoutData (data) {
  return request({
    url: '/sys/menu/nav',
    method: 'GET',
    data
  })
}